﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;

public partial class search_room_infor : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        
        if(!func.isordinfor(Session["usr"].ToString()))
        {
            Response.Write("<script>alert('您还没有订房信息，请订房后重试');location.href='" + Request.UrlReferrer.ToString() + "';</script>");

        }
        else
        {

            DataSet ds = func.oderinfor(Session["usr"].ToString());
            txtxm.Text = ds.Tables[0].Rows[0][0].ToString();
            txtisor.Text = ds.Tables[0].Rows[0][2].ToString(); 
            txtrtype.Text = ds.Tables[0].Rows[0][4].ToString(); 
            txtrno.Text = ds.Tables[0].Rows[0][7].ToString(); 
            txtdj.Text = ds.Tables[0].Rows[0][5].ToString(); 
            txtdates.Text = ds.Tables[0].Rows[0][3].ToString(); 

        }
       
       
    }
}